fix(insights): hide copy strategy text on mobile#498
Conversation
📝 WalkthroughWalkthroughTwo small UI/formatting edits: the "Copy Strategy" button label in SignalCard is now conditionally hidden on small screens via a responsive span; PerpsTile JSX attributes and an inline SVG were compacted from multi-line to single-line formatting. No logic or behavioral changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/apps/insights/components/SignalCard/SignalCard.tsx (1)
138-151: Add an accessible name for the icon-only button on mobile.With the label hidden on small screens, the button risks having no accessible name. Add
aria-label(or ansr-onlyspan) so screen readers still announce the action.♿️ Suggested fix
- <button + <button onClick={copyStrategy} className="flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-white/20 transition-all duration-200 text-xs font-medium text-white" + aria-label="Copy Strategy" >
Deploying x with
|
| Latest commit: |
7cbd020
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://900a2016.x-e62.pages.dev |
| Branch Preview URL: | https://feat-mobile-copy-button-fix.x-e62.pages.dev |
Deploying pillarx-debug with
|
| Latest commit: |
7cbd020
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e9a6ef05.pillarx-debug.pages.dev |
| Branch Preview URL: | https://feat-mobile-copy-button-fix.pillarx-debug.pages.dev |
Description
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.